import request from '@/utils/http'

// 保存项目更新
export function apiSaveUserPeak(userPeak) {


    const queryData = userPeak
    return request(
         '/api/userPeak/save', queryData, 'post'
    )
}



// 根据活动ID查询该活动的所有backer
export function apiQueryUserPeakByCID(campaignId, page = 1, limit = 15) {

    var params = {
        campaignId: campaignId
    }

    console.log("***")

    params.page = page
    params.limit = limit
    params.sidx = 'create_time'
    params.order = 'desc'

    return request(
        '/api/userPeak/infoByCID', params, 'post', false
    )
}







